package edu.hz.util.web;

public enum ApiResponseCode {
    SUCCESS("00000", "Success"),
    RESOURCE_NOT_FOUND("00404", "Resource Not Found"),
    FORBIDDEN("00403", "Forbidden"),
    UNAUTHORIZED("00401", "Unauthorized"),
    INTERNAL_SERVER_ERROR("00500", "Internal Server Error");

    private final String code;
    private final String message;

    ApiResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}